package com.hex.ds.hdtp.core.inf.data.contrast.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hex.ds.hdtp.core.inf.data.contrast.po.CrossDbContrastRunLogPo;
import org.apache.ibatis.annotations.Param;

/**
 * @Package: com.hex.ds.hdtp.core.inf.data.contrast.mapper
 * @ClassName ICrossDbContrastRunLogMapper
 * @Description: 跨库对比记录-数据映射接口
 * @Author: wz.li
 * @Date 2023/7/28 17:37
 * @Version v2.0.2
 **/
public interface ICrossDbContrastRunLogMapper extends BaseMapper<CrossDbContrastRunLogPo> {

    /*
     * @Method: queryListByPage <br>
     * @Param: [toMyBatisPlusPage, crossDbContrastRunLogPo] <br>
     * @Return: com.baomidou.mybatisplus.core.metadata.IPage<com.hex.ds.hdtp.core.inf.data.contrast.po.CrossDbContrastRunLogPo> <br>
     * @Description：分页查询<br>
     * @Author： wz.li<br>
     * @Date： 2023/7/28 17:37 <br>
     * @Version： V2.0.2<br>
     */
    IPage<CrossDbContrastRunLogPo> queryListByPage(IPage<CrossDbContrastRunLogPo> toMyBatisPlusPage,
                                                 @Param("po") CrossDbContrastRunLogPo crossDbContrastRunLogPo);

    void modifySuccessNum(String pkId);

    void modifyFailNum(String pkId);

    void modifyStatus(String pkId);

    Integer modifyStopTask(String pkId, String status, String nowTs);

    void modifyFinishTime(String pkId, String dateTime);

}
